package com.ts.common.enums;

/**
 * @author bobby
 * @date 2022/3/22
 */
public interface Enums {

    /**
     * 导出数据  业务编号
     */
    enum Export {

        bs_access_record("bs_access_record", "进出记录数据"),
        bs_base_station("bs_base_station", "基站数据"),
        bs_breed_record("bs_breed_record", "配种数据"),
        bs_check_record("bs_check_record", "检查数据"),
        bs_customer("bs_customer", "客户数据"),
        bs_immune_record("bs_immune_record", "检疫数据"),
        bs_inputs("bs_inputs", "动物管理数据"),
        bs_oestrus_record("bs_oestrus_record", "发情数据"),
        bs_parturition_record("bs_parturition_record", "生产（分娩）数据"),
        bs_rfid_label("bs_rfid_label", "耳标数据"),
        bs_rfid_sync_data("bs_rfid_sync_data", "基站同步数据"),
        bs_sale_record("bs_sale_record", "销售数据"),
        bs_sick_record("bs_sick_record", "疾病数据"),
        bs_space("bs_space", "场地数据"),
        bs_substandard_data("bs_substandard_data", "耗损数据"),
        bs_supplier("bs_supplier", "供应商数据"),
        bs_warning_record("bs_warning_record", "告警数据"),
        bs_rfid_label_import("bs_rfid_label_import", "耳标导入数据"),
        bs_rfid_label_settlement("bs_rfid_label_settlement", "耳标结算数据"),
        bs_rfid_label_use_info("bs_rfid_label_use_info", "耳标使用情况数据");

        private String code;//导出功能code
        private String text;//导出功能中文说明

        Export(String code, String text) {
            this.code = code;
            this.text = text;
        }

        public static Export getEnum(String code) {
            for (Export thisEnum : Export.values()) {
                if (thisEnum.getCode().equals(code)) {
                    return thisEnum;
                }
            }
            return null;
        }


        public String getCode() {
            return code;
        }

        public String getText() {
            return text;
        }
    }


}
